Skip to content

fix(cli): hold back minor releases and stop allowing every pre-release - #2177

Open
phernandez wants to merge 2 commits into
mainfrom
fix/2164-auto-update-minor
Open

phernandez wants to merge 2 commits into
mainfrom
fix/2164-auto-update-minor

Conversation

@phernandez

@phernandez phernandez commented Nov 29, 2026 •

Copy link
Copy Markdown
Member

Fixes #2164.

1. Minor releases are announced, not auto-installed

Background auto-update only held back major releases. 1.1 renames tools (bm_project and bm_schema split into bm_project_list, bm_project_create, bm_recent, bm_schema_validate, bm_schema_infer, bm_schema_diff). A 1.0 user with an MCP client allowlist or hooks naming the old tools would get 1.1 installed silently and break on restart.

  • is_major_upgrade is now is_feature_upgrade: true when the latest version's (major, minor) is higher. Background checks report a minor or major release with release notes and bm update instructions. Patch releases still auto-install, and bm update installs anything.

Release note: this only protects users who already run a version with this check. Users on 1.0.0 will still auto-install 1.1, so the 1.1 release notes need to name the tool renames clearly.

2. No more --prerelease=allow

1.0 already pinned a stable FastMCP (4.1.3), so the flag from #1338 is no longer needed. It is also harmful. Resolving pyproject.toml with --prerelease=allow picks protobuf 7.37.0rc3, redis 8.2.1b1, sqlite-vec 0.1.10a4 and wrapt 2.6.0.dev1. uv's default mode resolves the same tree with stable releases and still accepts the OpenTelemetry betas that logfire requests.

uv saves prerelease = "allow" in the tool receipt and reuses it on a plain uv tool upgrade. I checked this with uv 0.13.5. So:

  • auto-update, its manual hint, and the pinned-receipt reinstall hint pass --prerelease=if-necessary-or-explicit, which replaces the saved setting and moves old installs back to the default;
  • fresh-install commands drop the flag: README, llms-install.md, SECURITY.md, docs/litellm-provider.md, server.json runtime args, Claude Code and Codex plugin docs/skills and .mcp.json, the Hermes and OpenClaw installers, bm install next steps, the hook launcher, and the release runbooks.

--prerelease=allow remains only where it is correct: the beta-release runbook (upgrading to a basic-memory beta) and the beta guard in justfile and AGENTS.md.

Verification

  • just fast-check: passes
  • tests/cli, test_optional_litellm.py, test_update_versions.py: 1,294 passed, 7 skipped
  • just package-check: passes (Claude Code plugin, skills, Hermes, OpenClaw)

🤖 Generated with Claude Code

1.1 splits bm_project and bm_schema into new tools, so a background
install from 1.0 would break client tool allowlists and hooks without
warning. Background checks now treat a minor bump like a major one:
report it with release notes and leave the install to `bm update`.
Patch releases still install automatically.

Refs #2164

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: phernandez <paul@basicmachines.co>
@phernandez phernandez added this to the v1.1 milestone Nov 29, 2026
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 29, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-29T19:03:09.163753Z d8cad32 New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

No dependency needs pre-releases anymore (1.0 pinned a stable FastMCP),
and allowing all of them pulls unrelated alphas and release candidates
into the tool environment (protobuf, redis, sqlite-vec, wrapt).

uv saves --prerelease=allow in the tool receipt and reuses it on a plain
`uv tool upgrade`, so auto-update and its hints pass
--prerelease=if-necessary-or-explicit, which replaces the saved setting.
Fresh installs (docs, README, server.json, the Claude Code/Codex plugins,
the Hermes and OpenClaw installers, the hook launcher) drop the flag.

Fixes #2164

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: phernandez <paul@basicmachines.co>
@phernandez phernandez changed the title fix(cli): announce minor releases instead of auto-installing them fix(cli): hold back minor releases and stop allowing every pre-release Nov 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[FEATURE] Auto-update follow-up (#2000): guard breaking minor tool renames (1.0 -> 1.1) and drop hardcoded --prerelease=allow

1 participant